

/*******************************************************************
 *
 * Copyright (C), 2018-2018, www.letstrong.cn, All rights reserved.
 *
 * Author	   : xiaoyu | xiaoyu_ebox@163.com
 * Create Time : 2018-6-4
 * Version	   : v0.1
 * Description : ugui_font header file
 *******************************************************************/
#ifndef __UGUI_FONT_H__
#define __UGUI_FONT_H__

/*----------------------------Head file----------------------------*/
#include "ugui_config.h"
#include "ugui_types.h"

/*----------------------------macro file---------------------------*/
#define DEFAULT_UG_FONT 		FONT_8X12	//FONT_8X14


/*----------------------------type define--------------------------*/
#define __UG_FONT_DATA			const

// uGUI FONTS(http://www.mikrocontroller.net/user/show/benedikt)
typedef enum {
	FONT_TYPE_1BPP, 
	FONT_TYPE_8BPP
} FONT_TYPE;

typedef struct {
	unsigned char * p;
	FONT_TYPE font_type;
	UG_S16 char_width;
	UG_S16 char_height;
	UG_U16 start_char;
	UG_U16 end_char;
	UG_U8 * widths;
} UG_FONT;

/*-----------------------------------------------------------------*/
#ifdef USE_FONT_4X6
extern const UG_FONT FONT_4X6;

#endif

#ifdef USE_FONT_5X8
extern const UG_FONT FONT_5X8;

#endif

#ifdef USE_FONT_5X12
extern const UG_FONT FONT_5X12;

#endif

#ifdef USE_FONT_6X8
extern const UG_FONT FONT_6X8;

#endif

#ifdef USE_FONT_6X10
extern const UG_FONT FONT_6X10;

#endif

#ifdef USE_FONT_7X12
extern const UG_FONT FONT_7X12;

#endif

#ifdef USE_FONT_8X8
extern const UG_FONT FONT_8X8;

#endif

#ifdef USE_FONT_8X12
extern const UG_FONT FONT_8X12;

#endif

#ifdef USE_FONT_8X12_CYRILLIC
extern const UG_FONT FONT_8X12;

#endif

#ifdef USE_FONT_8X14
extern const UG_FONT FONT_8X14;

#endif

#ifdef USE_FONT_10X16
extern const UG_FONT FONT_10X16;

#endif

#ifdef USE_FONT_12X16
extern const UG_FONT FONT_12X16;

#endif

#ifdef USE_FONT_12X20
extern const UG_FONT FONT_12X20;

#endif

#ifdef USE_FONT_16X26
extern const UG_FONT FONT_16X26;

#endif

#ifdef USE_FONT_22X36
extern const UG_FONT FONT_22X36;

#endif

#ifdef USE_FONT_24X40
extern const UG_FONT FONT_24X40;

#endif

#ifdef USE_FONT_32X53
extern const UG_FONT FONT_32X53;

#endif


#endif // __UGUI_FONT_H__

